// 包含了一个立即执行函数 返回了一个 Greeter 的构造函数
var Greeter = /** @class */ (function () {
  function Greeter(message) {
    this.greeting = message;
  }
  // 构造函数的 原型链 https://blog.csdn.net/boonyaxnn/article/details/89339796
  Greeter.prototype.greet = function () {
    return "Hello, " + this.greeting;
  };
  return Greeter;
})();
var greeter;
greeter = new Greeter("world");
console.log(greeter.greet());
